# src/config.py
from pydantic_settings import BaseSettings  # 修改导入方式

class Settings(BaseSettings):
    DB_HOST: str = ""
    DB_PASSWORD:str = ""
    DB_NAME:str = ""
    DB_PORT: int = 3306  # 默认为 3306，可根据实际环境配置


    class Config:
        env_file = ".env"

settings = Settings()

if __name__ == '__main__':
    print(settings)
